﻿@model List<Table.Order>
@{
    ViewBag.Title = "Orders";
}

<li>@Html.ActionLink("Home", actionName: "Index", controllerName: "Home")</li>
<li>@Html.ActionLink("Search", actionName: "Search", controllerName: "Home")</li>
<li>@Html.ActionLink("Order", actionName: "Index", controllerName: "Order")</li>
<h2>Orders</h2>

<table>
    <thead>
        <tr>
            <th>OrderID</th>
            <th>LegacyNumber</th>
            <th>UserID</th>
            <th>OrderDate</th>
            <th>DeliveryStatus</th>
            <th>Shipping</th>
            <th>Handling</th>
            <th>ShippingMethod</th>
            <th>FirstName</th>
            <th>LastName</th>
            <th>Company</th>
            <th>Address1</th>
            <th>Address2</th>
            <th>City</th>
            <th>State</th>
            <th>ZIP</th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr align="center">
                <td>@item.OrderID</td>
                <td>@item.LegacyNumber</td>
                <td>@item.UserID</td>
                <td>@item.OrderDate</td>
                <td>@item.DeliveryStatus</td>
                <td>@item.Shipping</td>
                <td>@item.Handling</td>
                <td>@item.ShippingMethod</td>
                <td>@item.FirstName</td>
                <td>@item.LastName</td>
                <td>@item.Company</td>
                <td>@item.Address1</td>
                <td>@item.Address2</td>
                <td>@item.City</td>
                <td>@item.State</td>
                <td>@item.ZIP</td>
            </tr>
        }
    </tbody>

</table>



